<template>
	<div class="xuesheng">
		<h2>学生姓名：{{name}}</h2>
		<h2>学生年龄：{{age}}</h2>
		<button @click="age += 1">点我年龄+1</button>
	</div>
</template>

<script>
	export default {
		name:'Student',
		data() {
			return {
				name:'张三',
				age:18
			}
		},
	}
</script>

<style>
	.xuesheng{
		background-color: orange;
		padding: 30px;
	}
</style>